Measurements of neutron-capture cross sections of 244Cm and 246Cm at J-PARC/MLF/ANNRI