Rhode Island city’s bankruptcy situation mirrors Hartford’s