Control of a three-port converter for human power