Magnetic Fields of Extrasolar Planets: Planetary Interiors and Habitability