High-resolution compressive 3D imaging through phase ranging with a single-pixel photodetector