how does GDP per capita work