Foam and emulsion rheology: A quasistatic model for large deformations of spatially-periodic cells