A refinement procedure for PID controller tuning