Designing function-specific minimal microbiomes