A neural network approach to the classification of electron and proton whistlers