Diagnostic and therapeutic endoscope