Study of the valence transition in La- and Yb-substituted SmB6