How do contact forces such as friction differ from gravitational and magnetic forces?