An XMM—Newton observation of the narrow-line Seyfert 1 galaxy Markarian 896