The impact of demographic history and natural selection on human complex traits: examples from Sardinia and Finland