Enzymatic dyeing and functional finishing of textile fibres with ferulic acid