Robinet Bernard, Psychiatre à Besançon