Anion-controlled assembly of layer-type structures in double and triple salts of silver cyanide