Interaction of metal ions with montmorillonite and vermiculite