Crystal structure, vibrational studies, optical properties and TG-DTA investigations of a new chlorocadmate templated by 1-methylimidazolium