Dynamic tariffs, demand response, and regulation in retail electricity markets