Integrated multimode interferometers with arbitrary designs for photonic boson sampling