Ejecta fragmentation in impacts into gypsum and water ice