Homotopy theory of algebraic quantum field theories