Ab initio study of the effects of thin CsI coatings on the work function of graphite cathodes