Polaronic enhancement of second-harmonic generation in lithium niobate