Photospheric albedo and the measurement of energy and angular electron distributions in solar flares