Detection and molecular characterization of gastrointestinal cancers and premalignant lesions