Optimized Lie–Trotter–Suzuki decompositions for two and three non-commuting terms