Nonlinear H-infinity disturbance attenuation for robots with flexible joints