Achieving maximum power transfer in a multi-source renewable system