energy is sometimes defined as the ability to do work