General Two-Step Runge-Kutta methods based on algebraic and trigonometric polynomials