Macroscopic modeling for nonlinear analysis of RC structural walls