Let the plane \( P \) pass through the intersection of the planes \( 2x+3y-z=2 \) and \( x+2y+3z=6 \), and be perpendicular to the plane \( 2x+y-z+1=0 \). If \( d \) is the distance of \( P \) from the point \( (-7,1,1) \), then \( d^{2} \) is equal to: