Giant magnetoresistance in a two-dimensional electron gas modulated by periodically repeated magnetic barriers