Pressure-induced structural phase transition in fullerides doped with rare-earth metals