Symmetry breaking states of Bose-Einstein condensates in 1D double square well and optical lattice well [rapid communication]