Nuclear effects in prompt photon production at the Large Hadron Collider