Pseudopotentials on grids: Application to the electronic, optical, and vibrational properties of silicon nanocrystals