Trajectory tracking control for a class of mechanical systems without velocity measurements