Exact propagators for quadratic Hamiltonians