Globally gated deep linear networks