Crystal engineering and bifunctionality in spin-crossover materials