Data-driven energy efficiency and flexibility in commercial buildings