Problem and solution formulations for the generation of 3D block-structured grids