Duhamel's principle for temporally inhomogeneous evolution equations in Banach space