Stability of a Class of Relay Feedback Systems Arising in Controlled Mechanical Systems with Ideal C