Novel techniques based on FBG optical fibre sensors for real-time compensation of thermal errors of high precision machine tools