Crystallographic Investigations into the Polar Polymorphism of BaTeW2O9: Phase Transformation, Controlled Crystallization, and Linear and Nonlinear Optical Properties