Delve into the scientific principles behind red phosphorus masterbatch's effectiveness as a halogen-free flame retardant for polymers like PA6, PA66, and PBT, focusing on char formation and barrier properties.