An Approximation Algorithm for Generalized EXOR Projected Sum of Products