A new method for designing an efficient switching median filter using VLSI architecture to remove salt and pepper noise