Detecting the gravitational wave memory effect with TianQin