The application of magnets in medicine