Antoine Sabine, Psychiatre à Nancy