Modeling of Optical Nanoantennas