Electromagnetic scattering from finite dielectric cylinders