Adaption of structured grids based on Weighted Least Squares formulations