Lewis Hamilton said the gamble he and Mercedes took in making changes to his car "worked perfectly" in light of his cruise to victory in China.