Superfluid and Mott-insulator phases of one-dimensional Bose-Fermi mixtures