Two-photon generation of excitonic molecules in CuCl and CuBr