A technique for measuring hydrogen concentration versus depth in solid samples