Sloshing behavior of a magnetic fluid in a cylindrical container