Template-mediated synthesis and bio-functionalization of flexible lignin-based nanotubes and nanowires