Thermal treatment effects on hard and soft films measured by nanoindentation test