Band gap maps beyond the delocalization limit: correlation between optical band gaps and plasmon energies at the nanoscale