The S-Kernel: a measure of symmetry of objects