Intermediate luminosity optical transients during the grazing envelope evolution (GEE)