Multiconfigurational Quadratic Response Functions for Singlet and Triplet Perturbations: The Phosphorescence Lifetime of Formaldehyde.