The shape dependence of core–shell and hollow titania nanoparticles on coating thickness during layer-by-layer and sol–gel synthesis