X-ray variability and energy spectra from NGC 5408 X–1 with XMM–Newton