SPEN integrates transcriptional and epigenetic control of X-inactivation