types of mills and its operating principle