Stretching a macromolecule in an atomic force microscope: statistical mechanical analysis.