Diffusion-controlled solid state reactions of spherical particles. A general model for multiphase binary systems