Extraction and control of permittivity of hyperbolic metamaterials with optical nonlocality