Effective core potentials and accurate energy curves for Cs2 and other alkali diatomics