Peierls instability, periodic Bose-Einstein condensates, and density waves in quasi-one-dimensional boson-fermion mixtures of atomic gases