Ionic liquid mediated auto-templating assembly of CaCO3-chitosan hybrid nanoboxes and nanoframes.