Fully digital control of active filters for ac/dc converters