Analysis of oxygen on and in beryllium using 2 MeV helium ions