calculates displacement for non-Li atoms. Need to double check this.