A simulation and control design environment for single stage and dual stage hard disk drives