Join two grids, which are not of the same dimensionality. The grid
of lower dimensionality is extended to the larger one by adding
a full grid resolution in the new directions.
@param grid1: Grid, sparse grid
@param grid2: Grid, sparse grid
@return: Grid, joined sparse grid of dimensionality max(dim1, dim2) with
basis of grid2