Mechatronics applications of measurements for smart manufacturing in an industry 4.0 scenario