Buying the "worst house" in the best neighborhood can still pay off, but only if the numbers work. Here's how to tell if it's ...