More than 500 hikers and their guides have been successfully evacuated from an Indonesian volcano after a deadly earthquake triggered landslides that trapped them on the mountain.