Small amplitude Bernstein–Greene–Kruskal solitary waves in a thermal charge-varying dusty plasma