Physical simulation, visualization, and optimization of basketball shot parameters