Accurate estimation of tip shape for reconstructing AFM image