Pion form factor in the QCD sum-rule approach with nonlocal condensates