Generalized belief propagation receiver for near-optimal detection of two-dimensional channels with memory