In what year did Henry I of Castile's grandather sign a peace treaty guaranteeing his successorship to the throne of England?