Local and global performance of double-gap resistive plate chambers operated in avalanche mode