Density measurement for polymers by magneto-Archimedes levitation: Simulation and experiments