Mourey Bernard, Psychiatre à Belfort