An improved NRW method to extract electromagnetic parameters of metamaterials