Lithium ion insertion in nanoporous anatase TiO2 studied with RIXS