Robust coal granularity estimation via deep neural network with an image enhancement layer