Amazon beats earnings expectations on strong cloud growth