Energy‐optimal trajectory planning for the Pendubot and the Acrobot. (24th February 2012)