Integration of renewable energy sources in microgrids: Sizing and intelligent management