Watching bubbles in fermenting beer led 18th-century scientist Joseph Priestley to invent sparkling water – and to discover that different gases make up the air we breathe.