Phase transformation of diamond films during electron field emission