Generalized Inverses of Multiple Matrix Products