Carleson--Buckley measures beyond the scope of $A_\infty$ and their applications