Numerical investigation of whispering gallery modes in dielectric nanospheres for photovoltaic applications