Converter device and method for converting power