The evolution of giant planets