Quantum size effect of valence band plasmon energies in Si and SnOx nanoparticles