Devaux Romain, Psychiatre à Besançon