The thermodynamics of black holes