Multilayered coatings for protecting carbon-carbon composites from oxidation