Quantum logic gates with two-level trapped ions beyond Lamb--Dicke limit