Dissolution of AgCl by complexation with NH3