On the diffusion induced by alternating renewal processes