Factors influencing retention of lanthanide ions by montmorillonite