Barty retains Miami Open crown as injured Andreescu limps out