Diagnosis of carcinoid tumors is done by: