A generally valid algorithm for PID auto-tuners