Statistics for Cleaning foregrounds from single-dish 21 cm intensity maps with Kernel principal component analysis