Surface-to-core temperature variation of homogeneously magnetized neutron stars