Planet migration: self-gravitating radiation hydrodynamical models of protoplanets with surfaces