A Convex Formulation of Frictional Contact for the Material Point Method and Rigid Bodies