An optimal incentive contract to avert firm relocation under unilateral environmental regulation