The law of conservation of energy states that