Natural resources can transform economies, but under weak governance they can also deepen inequality, fuel corruption and generate environmental and social tensions.