Active building envelopes. An integrated solution for solar cooling and heating