What are the two ways in which you can trace the magnetic field pattern of a bar magnet?