Energy flexibility harvesting from data analytics – integration of building energy resources into energy markets