Uncertainty quantifications and operation optimization of buildings as virtual batteries for the grid with high penetrations of renewables