Hydrogenation as a source of superconductivity in two-dimensional TiB2