Three-dimensional, transient model for laser machining of ablating/decomposing materials