7.7-magnitude earthquake rocks Thai capital of Bangkok, prompting evacuations from swaying buildings