Preparation of solid electrolyte using solid state reactions