Biomimetic spinning of soft functional fibres via spontaneous phase separation