Direct measurement of molecular forces