Members of the Fire Brigades Union have voted for industrial action in a bitter dispute over changes to shift patterns.