A HARD X-RAY STUDY OF THE ULTRALUMINOUS X-RAY SOURCE NGC 5204 X-1 WITH NuSTAR AND XMM-NEWTON