Tensions between Washington and Tehran are rising sharply over access to key shipping routes in the Persian Gulf, as both sides harden their positions.