Accurate potential energy curves for the X 1S+ and A1S+ states of NaH