A comparison of structures and properties of SiNx and SiOx films prepared by PECVD