Coherent phase control in laser-assisted radiative recombination and x-ray generation