The structural basis of lipid scrambling and inactivation in the endoplasmic reticulum scramblase TMEM16K