The Impact of Loss Function Topology on Gradient Descent