Singlet-triplet intersystem coupling in formaldehyde