Long-term temperature evolution of neutron stars undergoing episodic accretion outbursts