Evaluation of a rayleigh-number-based freckle criterion for Pb-Sn alloys and Ni-base superalloys