Mass and energy in nuclear reactions