Raspberry PI has lifted its profit outlook for the year as strong demand for artificial intelligence boosted sales.