Improved control of an active-front-end adjustable speed drive with a small de-link capacitor under real grid conditions