Runge-Kutta(-Nystrom) methods for ODEs with periodic solutions based on trigonometric polynomials