The 3 × 3 lemma in the Σ-Mal'tsev and Σ-protomodular settings : Applications to monoids and quandles