Design and synthesis of functional polymer materials and their applications in biomedical and energy fields