All-optical electric field sensor in domain inverted LiNbO3 for harsh environment