Metal ion extraction