Optimum energy extraction from rotational motion in a parametrically excited pendulum