How state preparation can affect a quantum experiment: Quantum process tomography for open systems