Theory of the mobility of electrons limited by charged impurities in two dimensions