Real time phase current estimation for brushless DC motor drive system by using front current of dc-link capacitor