Distinct structural and ionotropic roles of NMDA receptors in controlling spine and synapse stability