Extended Dynamically Weighted CASPT2: The Best of Two Worlds