SIMULATION OF NONDYNAMICAL CORRELATION IN DENSITY FUNCTIONAL CALCULATIONS BY THE OPTIMIZED FRACTIONAL ORBITAL OCCUPATION APPROACH : APPLICATION TO THE POTENTIAL ENERGY SURFACES OF O3 AND SO2