Quantum computation with trapped molecules