First-principles study of divalent IIA and transition IIB metals doping into Cu2O