Effect of boron dimers on the superconducting critical temperature in boron-doped diamond