R25 and M3 soft mode competition near the structural phase transition in KCaF3