Cameron Norrie battled past Tomas Machac in three sets to reach the third round of the Madrid Open, but fellow British hopeful Katie Boulter was beaten by fifth seed Jessica Pegula on Friday.