Distribution of nonequilibrium charge carriers in a nonlinear thin-film capacitor