Estimating the effectiveness of vaccine programs in dog populations