Geometric phases and Wannier functions of Bloch electrons in one dimension