Self-assembly of perylenediimide and naphthalenediimide nanostructures on glass substrates through deposition from the gas phase.