Averages of Products and Ratios of Characteristic Polynomials in Polynomial Ensembles