Optimising ultrasonic cutting of multi-layered materials