Interatomic interaction in interstitial solutions with fcc and bcc lattices