A comparative study on ultrasonic machining of hard and brittle materials