Gross domestic product is a method for calculating how much a country produces by adding which four spending categories?.