Who was the eldest son of Alfonso III and what did he become king of?