Studies on non-linear optical materials and photochemical reactions in the crystalline state by X-ray crystallography