X-ray spectroscopy and photometry of the long-period polar AI Trianguli with XMM-Newton