The criterion of gravity wave instability induced by photochemistry in summer polar mesopause region