Growth-etching competitive mechanism governing the structure and chemical composition of plasma-deposited silicon-based materials