Application of A* algorithm for tortuosity and effective porosity estimation of 2D rock images