Phase structure and duality of ZN lattice gauge theory with generalized actions in four space-time dimensions