Importance sampling of optical soliton phase