Single-chain antibodies as diagnostic tools and therapeutic agents