Disproportionation, dopant incorporation, and defect clustering in perovskite-structured NdCoO3