Yb–Yb correlations and crystal-field effects in the Kondo insulator YbB12 and its solid solutions