Optimization of layered battery cathode materials synthesized via spray pyrolysis