Trapping Sets of Iterative Decoders for Quantum and Classical Low-Density Parity-Check Codes