Influence of defects on electron emission from diamond films