Polarized and unpolarized double prompt photon production in next-to-leading order QCD