Optimal Building Technology Selection and Operation: A Systemic Approach