how are all magnets alike and how are they different