Complexing capsules--metal extraction and modeling of ion transfer.