Tidal Heating of Terrestrial Extra-Solar Planets and Implications for their Habitability