Work probability distribution in single-molecule experiments