Structural, Optical, and Theoretical Studies of a Thermochromic Organic Crystal with Reversibly Variable Second Harmonic Generation