An algebraic method for the analytical solutions of the Klein–Gordon equation for any angular momentum for some diatomic potentials