Charmoille Jean, Psychiatre à Montbéliard