Thermal degradation of melamine-formaldehyde resins and related model compounds