Knocking control method and apparatus for internal combustion engine