How AI and analytics can stabilize the outlook for P&C insurance