On the gravitational nature of energy