what forms of energy does pendulm have/