Study of second and third harmonic generation from an indium tin oxide nanolayer: Influence of nonlocal effects and hot electrons