Reproduction of response functions of a multi-pixel-type energy-resolved photon counting detector while taking into consideration interaction of X-rays, charge sharing and energy resolution