Second-Harmonic Generation in Resonant Nonlinear Metasurfaces Based on Lithium Niobate.