Ronaldo extends Real Madrid deal to 2021