Generalized Artin–Mumford curves over finite fields