Inverse-based local loop shaping and IIR-filter design for precision motion control