Nuclear envelope dynamics in embryos and somatic cells