Principle and application of magnetic polishing machine