Magnetic excitations and phase separation in the underdoped La2-xSrxCuO4 superconductor measured by resonant inelastic X-ray scattering.