World number two Carlos Alcaraz defeated Fabian Marozsan in straight sets to reach the quarter-finals of the BNP Paribas Open.