Bell's inequality violation for entangled generalized Bernoulli states in two spatially separate cavities