Subsurface oceans and deep interiors of medium-sized outer planet satellites and large trans-neptunian objects