To calculate the amount of energy transferred by heat to or from an object you must know the mass of the object and what else??