Spin transition in transition metal complexes (Fe(II), Ru(II)) driven by gating or longitudinal strain and transport properties