A devastating 7.7-magnitude earthquake has hit central Myanmar, with aftershocks causing structural damage as far as Bangkok.