PHOTON: A program for synchrotron radiation dose calculations