Index theorems for hyperbolic operators and particle creation