Effects of changes in outputs and in prices on the economic system: an input–output analysis using the spectral theory of nonnegative matrices