OCL: rewrite boxFilter, filter2D

Merge after https://github.com/Itseez/opencv/pull/1707