Digital resonant current controllers for voltage source converters