Optimal control of mode-selective femtochemistry in multidimensional systems