State update algorithm for associative elastic-plastic pressure-insensitive materials by incremental energy minimization