On star polynomials of graphs