Habitability for moons around giant planets