Theoretical Study of the Structural Phase Transition in RbCaF3