Einstein coefficients for diatomic molecules