Molecular properties of metal difluorides and their interactions with CO2 and H2O molecules: a DFT investigation