Magnetization densities as replica parameters: The dilute ferromagnet