Representation theory for polyadic algebras