Quantum field theories in curved spacetime