Multi objective optimization of a fuzzy logic controller for energy management in microgrids