Maximum field emission current density of CuO nanowires: theoretical study using a defect-related semiconductor field emission model and in situ measurements