Chip-based waveguides for high-sensitivity biosensing and super-resolution imaging