Precision speed control and stability analysis of brushless DC motor based on input shaping technique