Interplay of rare-earth and transition-metal subsystems in Cu3Yb(SeO3)2O2Cl