ZN gauge theories coupled to topological fermions: QED2 with a quantum mechanical θ angle