Thermal photon production from gluon fusion induced by magnetic fields in relativistic heavy-ion collisions