Amazon profit soars due to AI and advertising