Synthesis of silicon oxynitride from a polymeric precursor