Surface order transition in nematic liquid crystals induced by the flexoelectric polarization