Unsupervised learning of sensory-motor synergies