A method to quantify the 37Ar emanation fraction in powders and rocks