Dynamic quality control machinery that operates across compartmental borders mediates the degradation of mammalian nuclear membrane proteins