First-principles study of electronic structure and charge transport at PTCDA molecular layers on Ag(111) and Al(111) electrodes