Measurements of work function of pristine and CuI doped carbon nanotubes