Arbitrary integrated multimode interferometers for the elaboration of photonic qubits