how work power and energy related with each other