Text this: Nonlinear waves in heterogeneous elastic rods via homogenization