Optimal reciprocal reinsurance treaties under the joint survival probability and the joint profitable probability