Simultaneous estimation of the number of principal components and kernel parameter in KPCA