A data‐driven network optimisation approach to coordinated control of distributed photovoltaic systems and smart buildings in distribution systems