Structure-charring relationship in phenol-formaldehyde type resins