Essays on energy demand and behaviour