Spectral index maps of the radio halos in Abell 665 and Abell 2163