Survival probability of slow ions colliding with room-temperature and heated surfaces of beryllium