Improving the minimum distance of QC-LDPC codes by removing cycles