Switching speeds of MOS inverters