Basis transformations for the sodium D line states