SOM networks for comparing patterns with peak shifts