York Co. deputies train in dealing with mental illness