Estimating Primary Mass Composition of Cosmic Rays Using Geomagnetic Spectroscopy