A quantum chemical investigation of the interaction of organic molecules and polymers with graphite. Comparison with the STM imaging of organic adsorbates