Ion beam analysis of ultrathin dielectric films