finds kinetic energy of an object