D matrix analysis of the Renner-Teller effect: an accurate three-state diabatization for NH2