Characterization of the LIGO detectors during their sixth science run