Napoli beat Inter in six-goal thriller