Nakagami loses out in fight with Espargaro