Search and rescue teams have continued combing through rubble to free people trapped in buildings after a 7.7 magnitude earthquake hit Indonesia.