Roberto Martinez wants to build a “beautiful legacy” after extending his contract as Belgium head coach.