Preparation of Nanostructures Using Layer-by-Layer Assembly and Applications