Converter simultaneously as active front end and aqs active filter