Swing-up control for n-link planar robot with single passive joint using the notion of virtual composite links