Pancharatnam-Berry phase optical elements for generation and control of complex light: Generalized superelliptical q-plates