Necessary conditions for avoiding cycles of length 4 or 6 in regular quasi-cyclic LDPC codes