Families of beams with a given buckling spectrum