Level of training of nursing staff and the autonomy given to psychiatric inpatients: a multicenter study