Demand Shaping to Achieve Steady Electricity Consumption with Load Balancing in a Smart Grid