Retrieving effective material parameters of metamaterials characterized by nonlocal constitutive relations