Carbon on platinum: Work function changes caused by atomic carbon and by two-dimensional graphite islands