what is grinding machine and its principles