The restricted active space followed by second-order perturbation theory method: Theory and application to the study of CuO2 and Cu2O2 systems | Synapse