Photon production from Pb + Pb collisions at sNN=5.02 TeV at the CERN Large Hadron Collider and at sNN=39 TeV at the proposed Future Circular Collider facility