Inorganic chemistry in a nanoreactor: doped ZnO nanostructures by miniemulsion