Grid-Interactive Buildings: Modeling, Operations, And Security