An experimental method for measuring the radon-222 emanation factor in rocks