An information-matching approach to optimal experimental design and active learning