A sufficient condition for free-stream preserving WENO schemes on curvilinear grids of complex geometries