A novel algorithm for refining cerebral vascular measurements in infants and adults