Implementation of a Fuzzy Logic Controller for Long-Term Energy Management in a Hybrid AC/DC Microgrid