Determination of trap energies in Alq3 and TPD