Effect of crystalline field on the knight shift in SmSn3 and SmAl2