details of grinding machine along with its working principle