Validation of the observed increase in the ocean heat content with the law of conservation of energy