Tribology behavior during indentation and scratch of thin films on substrates: effects of plastic friction