Core level spectra of organic molecules adsorbed on graphene