Cd(II) based metal-organic framework behaving as a Schottky barrier diode.