Optimal control of Raman pulse sequences for atom interferometry