Dielectric switching, SHG response and Pd(ii) adsorption of a multifunctional phase-transition complex