photon attenuation calculator