Simulation of fluctuation and dissipation in dynamic force microscopy