CCD Photometry of the Globular Cluster ω Centauri. II. Stellar Populations and Age-Metallicity Relation