Chandra and XMM–Newton observations of NGC 5253: analysis of the X-ray emission from a dwarf starburst galaxy