Optimization of Large Amorphous Silicon and Silica Structures for Molecular Dynamics Simulations of Energetic Impacts