Recent advances in functional fiber electronics