Anisotropic solution-adaptive technique applied to simulations of steady and unsteady compressible flows