write down the working principle of grinding machine