A berberine hydrochloride-carboxymethyl chitosan hydrogel protects against Staphylococcus aureus infection in a rat mastitis model.