Title: Stability of permanent magnets