Jon Rahm raced back into contention for the weekend, but Ryder Cup-winning team-mate Shane Lowry missed the cut, on the second day of Open de Espana presented by Madrid.