Spin filter and molecular switch based on bowtie-shaped graphene nanoflake