Functional polymer composite encapsulants for electronic packaging