The Thermodynamic Solution to the Perfect Cup of Tea