Calculation of the optical force on an infinite cylinder with arbitrary cross section by the boundary element method