Logical inference approach to relativistic quantum mechanics : Derivation of the Klein-Gordon equation