Output feedback tracking control for a class of mechanical systems