Effects of hydrocarbon and nitrogen oxides on photochemical smog formation