Sensitivity analysis of the value function for nonsmooth optimization problems