CMOS distance sensor based on photon mixing device