The interaction of waves with horizontal cylinders in two-layer fluids