Study of the formation mechanism of gas hydrates of methane in the presence of surface-active substances