Automated measurement and compensation of thermally induced error maps in machine tools