Preparation of diamond targets for ion beam analysis