OPM, whenever it determines it to be necessary, shall prescribe regulations governing the release of employees (both within the competitive service and the excepted service) by any agency in the executive branch of the Government for employment in any other agency, and governing the establishment, granting, and exercise of rights to reemployment in the agencies from which employees are released.