Two American researchers, William Nordhaus and Paul Romer, have won the Nobel Prize in economics.