Learning efficient haptic shape exploration with a rigid tactile sensor array