Nonlocal homogenization theory in metamaterials: Effective electromagnetic spatial dispersion and artificial chirality