Gamblin Philippe, Psychiatre à Valenciennes