Design and Synthesis of Functional Nanomaterials Towards Autonomous Theranostics