Correlation between thin film morphology and performance of devices based on phthalocyanine, pentacene and rubrene molecules