Inversion of the broken ray transform in the case of energy-dependent attenuation.