Contact Forces Preintegration for Estimation in Legged Robotics using Factor Graphs