Bimagnon studies in cuprates with resonant inelastic x-ray scattering at the O K edge. II. Doping effect in La2-xSrxCuO4