Cotto stops Martinez in middleweight title fight