Low-rank generalized alternating direction implicit iteration method for solving matrix equations