A molecular template approach to integration of polyaniline into textiles