A proposal for the measurement of Rashba and Dresselhaus spin–orbit interaction strengths in a single sample