Reliability evaluation of the renewable energy-based microgrids considering resource variation