A survey on learning models of spiking neural membrane systems and spiking neural networks