Compensating commutation-angle domain disturbances with application to waveform optimization for piezo stepper actuators