Porous fibres with encapsulated functional materials and tunable release