Equations defining symmetric varieties and affine grassmannians