Maria Sharapova was hoping to get her bid for a third consecutive Rome Open title off to the perfect start with victory over Garbine Muguruza.