Quantum engineering of Majorana quasiparticles in one-dimensional optical lattices