what happens when you bring two magnetic poles together?