What countries were ruled by the same person whose illiegitimate son became Duke of Richmond?