Spectroscopic constants of the X 2Σ+ and A 2Π states of Sr+Ar from first principles: Comparison with experiment