Using thermal transients at the outlet of electrical water heaters to recognise consumption patterns for heating schedule optimi