Potential Curves for BeH+ and CH+