Multiscale analysis of highly heterogeneous nonlinear media