Undergraduate texts in mathematics : a first course in mathematical foundations of thermodynamics