Nanomaterials for biosensing and cancer therapy