Zero modes of various graphene configurations from the index theorem