Differentiable Compliant Contact Primitives for Estimation and Model Predictive Control