Quake shakes north of Thailand and Myanmar