Hawking radiation and black hole thermodynamics