Encapsulation of proteins in bulk and thin film sol-gel matrices