A toolchain for open-loop compensation of hysteresis and creep in atomic force microscopes