Electromagnetic form factors of the nucleon from perturbative QCD and QCD sum rules