An Improved Method for Demagnetizing Rocks in Alternating Magnetic Fields