Quality improvements in extruded meshes using topologically adaptive generalized elements