State-specific theory and method for the computation of diatomic molecules: Application to He22+ 1 Sigma g+