Optimal Sizing and Rule-Based Management of Hybrid Microgrids Using SSA for Rural Electrification