The Modeling And Advanced Controller Design Of Wind, Pv And Battery Inverters