Electromagnetic interaction with a rotating dielectric cylinder at arbitrary cross section