SNN-Based Online Learning of Concepts and Action Laws in an Open World