T-API: optimized cv::calcHist

check_regression=*OCL*Hist*
test_filter=*OCL*Hist*
test_modules=imgproc
build_examples=OFF