World number six Rory McIlroy surged into a share of the lead after two rounds of the European Masters.