A methyl viologen-containing cadmium crystalline material with photochromism and methylamine sensing properties