Sizes, colour gradients and resolved stellar mass distributions for the massive cluster galaxies in XMMUJ2235-2557 at z = 1.39