Irreducible Cyclic Codes and Polyadic Codes: Generating Idempotents, Weight Distributions, Existence Conditions