Computation of topographic and three-dimensional atomic force microscopy images of biopolymers by calculating forces