state the first law of magnetism