The bivariate gas–stellar mass distributions and the mass functions of early- and late-type galaxies at | Publicación