Convergence of discrete and continuous unilateral flows for Ambrosio-Tortorelli energies and application to mechanics