Andy Murray booked his place in the semi-finals of the Sony Open in Miami with a straight-sets win over Marin Cilic.