McConaughey writing book based on life-changing adventures