Theoretical Model for Pattern Engineering of Harmonic Generation in All-Dielectric Nanoantennas