Critical chip firm ASML posts profit beat but sales miss expectations with 22% drop