Average spectra and minimum distances of low density parity check codes over cyclic groups