Feigin–Frenkel center in types B, C and D