Determination of the branching fraction for B -> X(c)l nu decays and of vertical bar V-cb vertical bar from hadronic-mass and lepton-energy moments