An accurate boundary-oriented method for TM-scattering by perfectly conducting and/or dielectric cylinders of arbitrary cross-section