Polynomial growth and identities of superalgebras and star-algebras