David Wise wins gold medal in men's ski halfpipe