Uncertain Pose Estimation during Contact Tasks using Differentiable Contact Features