Coronal properties of the Seyfert 1.9 galaxy MCG-05-23-016 determined from hard X-ray spectroscopy with NuSTAR