Impurities on graphene: Midgap states and migration barriers