Linearly separable stack-like architecture for the design of weighted order statistic filters with application in image processing