Physics of basketball shooting