A grid-independent length scale for large-eddy simulations