An approach to the diagnosis of training needs