Chandra observations of the dwarf starburst and Wolf-Rayet galaxies NGC 4449 and NGC 5253