Metal ion-triggered Pickering emulsions and foams for efficient metal ion extraction.