Efficient quantum simulation of fermionic and bosonic models in trapped ions