Nonclassicality polynomials