Gas sensing properties of organotitanium complex from first principles calculations and molecular dynamics simulations