On tracking control of a class of complementary-slackness hybrid mechanical systems