Bio-inspired unsupervised learning of visual features leads to robust invariant object recognition