Malaysia gets Thai permission to access migrant graves