Fast discrete transforms by means of eigenpolynomials