Input Shaping for Underdamped Systems