Strange duality of weighted homogeneous polynomials