Preprocessing of solar vector magnetograms for force-free magnetic field extrapolation