Mathieu Philippe, Psychiatre à Remiremont