Modeling non-Andersonian fault growth following the energetic criterion: the creation of detachments and listric faults