Irish government finalizes terms of inquiry into mother-baby homes