Inner products of box splines and their derivatives