The habitability of super-Earths