Origin of spin polarization in an edge boron doped zigzag graphene nanoribbon: a potential spin filter