Kings of Angkor Wat may have been the architects of their own downfall