Implementing peak load reduction algorithms for household electrical appliances