Habitable evaporated cores: transforming mini-Neptunes into super-Earths in the habitable zones of M dwarfs.