Structural mechanism of functional modulation by gene splicing in NMDA receptors