Generalized multiresolution analyses with given multiplicity functions