Implantation and ion beam mixing in thin film analysis