Spin transistor based on T-shaped graphene junctions