QCD sum rules in exclusive kinematics and pion wave function