Determination of Rashba and Dresselhaus spin-orbit fields