Electronic structure and electrical properties of interfaces between metals and pi-conjugated molecular films