Performance Enhancement of an Economically Operated DC Microgrid With a Neural Network–Based Tri-Port Converter for Rural Electrification