Amazon profit falls as pandemic-related costs rise