Principles and applications of ion beam techniques for the analysis of solids and thin films