Dimension-six matrix elements for meson mixing and lifetimes from sum rules