principle of operation of a grinding machine