From fluffy idlis and crusty sourdough to kimchi and kombucha, fermentation has quietly powered some of the world’s most delicious and nutritious foods for centuries. But what makes it taste better