Phase coherence, visibility, and the superfluid-mott-insulator transition on one-dimensional optical lattices