Optimal Dynamic Pricing for Trading-Off User Utility and Operator Profit in Smart Grid