Particle selection in a cosmic ray space experiment by neural networks