Functional biopolymer nanocomposites based on layered solids