Real-time monitoring of nucleic acid ligation in homogenous solutions using molecular beacons.