Riemann boundary value problems of polyanalytic functions and metaanalytic functions on the closed curves