Optimal control and performance of photovoltachromic switchable glazing for building integration in temperate climates