functional theory of mineral resources