Miscibility of rock and ice in the interiors of water worlds