Sparse generator matrices for some families of quasi-cyclic low-density parity-check codes