Magnetic nanocarriers with tunable pH dependence for controlled loading and release of cationic and anionic payloads.