The skeletal remains of one of Europe's most powerful rulers have been unearthed at a 14th century monastery in Spain.