Nanoindentation of thin films: Simulations and experiments