Trapping effects in thin oxynitride layers in metal-insulator-semiconductor devices