LDPC AND CONVOLUTIONAL CODES FROM MATRIX AND GROUP RINGS