Transmission resonances and zeros in quantum waveguides with resonantly coupled cavities