Magnetic exchange interactions in tetrabromocuprate compounds