Load matching in residential buildings through the use of thermal energy storages