Profiling hydrogen in materials using ion beams