Text this: Optimal control of nonconvex sweeping processes with separable endpoints: Nonsmooth maximum principle for local minimizers