A control approach to achieve maximum power with minimum current ripple for switched reluctance generator in battery charging application