Recent advances in soft functional materials: preparation, functions and applications.