Brazil’s Vale posts decline in quarterly profit but beats expectations