A study of the electrochemical lithium intercalation behavior of porous LiNiO2 electrodes prepared by solid-state reaction and sol–gel methods