Battery and hybrid inverters