Generalized and doubly generalized LDPC codes with random component codes for the binary erasure channel