Surface quality improvement of porous thin films suitable for nanoindentation