Gas escapes from the surface of a planet because it acquires an escape velocity. The escape velocity will depend on which of the following factors: