Cylindric algebras and finite polyadic algebras