Nuclear forces: Theory and applications