Finite element modeling and simulation of photoconductive and ballistic semiconductor nanodevices