Simultaneous NuSTAR and XMM-Newton 0.5-80 keV spectroscopy of the narrow-line Seyfert 1 galaxy SWIFT J2127.4+5654