MAGANet: Achieving Combinatorial Generalization by Modeling a Group Action