Real-time digital implementation of a principal component analysis algorithm for neurons spike detection