what are the ways of how energy is transfered?