High-energy monitoring of NGC 4593 withXMM–NewtonandNuSTAR. X-ray spectral analysis