Spatial and spectral shape of inhomogeneous nonequilibrium exciton-polariton condensates