Limit cycles and invariant cylinders for a class of continuous and discontinuous vector field in dimension 2n