Variability analysis of wind and solar energy for optimal power system integration