A System of Nonlinear Partial Differential Equations Arising in the Optimal Control of Stochastic Systems with Switching Costs