Inversion of photon spectra using anisotropic a bremsstrahlung cross section