Adaptive nanolaminate coating by atomic layer deposition