Nonlocal transformation optics for dispersion engineering