Time-domain separation of nuclear and electronic contributions to the third-order nonlinearity in glasses