Spiders for rank 2 Lie algebras