How were magnets discovered?