A Magnetic Float Method for Determining the Densities of Solutions