Computing Safe Contention Bounds for Multicore Resources with Round-Robin and FIFO Arbitration