From the Knights Templar to an islet in the Tagus: 5 medieval castles that look like movie sets