Predicting self-injurious thoughts in daily life using ambulatory assessment of state cognition.