Coupling of Bernstein modes in two- and three-dimensional plasmas and effect on their lifetimes