Phase diagram of the XXZ chain with next-nearest-neighbor interactions