Amazon's profit margin rises as new businesses grow