Staples Q3 profit up on lower charges, beats Street