Residual Vibration Reduction Using Vector Diagrams to Generate Shaped Inputs