A nano-optical vector network analyzer