Chemical structure, aggregate structure and optical properties of adsorbed dye molecules investigated by scanning tunnelling microscopy