Formation of matter-wave soliton molecules