Structural motifs in heteroleptic copper and cadmium selenites