Using chromatic effects to achieve wavelength-dependent depth resolution