Rydberg Excitations in Bose-Einstein Condensates in Quasi-One-Dimensional Potentials and Optical Lattices