Massively parallel analysis of the functional effects of mutations