AFM vs TEM

When should a physical surface scan or a through-sample electron image be used at the nanoscale?