Rigorous formulation of two-parameter double-hybrid density-functionals.