Internal-state thermometry by depletion spectroscopy in a cold guided beam of formaldehyde