Factors related to outcome of early and delayed prosthetic joint infections.