Exact solutions and Painlevé analysis of a new (2+1)-dimensional generalized KdV equation