Electromagnetic interaction with a rotating cylinder of arbitrary cross section