Auto-tune method for dc-dc converter dynamic modelling and control