Bonding of oxygen and nitrogen atoms in hydrogenated amorphous silicon alloys