Mercedes masterstroke in Spain helps Hamilton deny Verstappen