An oscillatory neural network implementing the similarity and prior knowledge gestalt rules: object segmentation and retrieval