Role of the substrate in monolithic AlGaAs nonlinear nanoantennas