Determining hardness of thin films in elastically mismatched film-on-substrate systems using nanoindentation