A repetitive control system for four-leg matrix converters feeding non-linear loads