Stability and spatial coherence of nonresonantly pumped exciton-polariton condensates