Optimal Monetary Policy with State-Dependent Pricing