All-optical switching in dye-doped DNA nanofibers