Structural phase transitions in KCdF3 and K0.5Rb0.5CdF3