General Wick's theorem for bosonic and fermionic operators Article in Physical Review A (November 2021)